package com.pmcc.yn.repository;

import com.pmcc.yn.entity.EntryInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liliguo on 2019/1/14.
 */
public interface EntryInfoRepository extends JpaRepository<EntryInfo,String> {

    Page<EntryInfo> findAll(Specification<EntryInfo> spec, Pageable var1);

    EntryInfo findById(String id);

    List<EntryInfo> findByOrderId(String orderId);

    List<EntryInfo> findByTechnicianId(String technicianId);

    List<EntryInfo> findByOrderIdAndReadFlag(String id,Integer readFlag);


    List<EntryInfo> findByOrderIdAndReadFlagAndDelFlag(String id, int i, int i1);

    List<EntryInfo> findByOrderIdAndDelFlag(String id, int i);
}
